package bupt.xixi;

import lombok.SneakyThrows;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * 测试-客户端-Netty
 */

@ComponentScan(basePackages = {"bupt.xixi"})
public class NettyTestClient {

    @SneakyThrows
    public static void main(final String[] args) {

        final AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(NettyTestClient.class);
        final HelloController helloController = (HelloController) context.getBean("helloController");
        helloController.test();


    }
}
